/*
 * @Author: xiweidong 1324156920@qq.com
 * @Date: 2024-08-30 14:50:29
 * @LastEditors: xiweidong 1324156920@qq.com
 * @LastEditTime: 2024-08-30 14:57:45
 * @FilePath: \plugins\vite.config.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import { defineConfig } from "vite";
import { resolve } from "path";
import cesium from "vite-plugin-cesium";

export default defineConfig({
  /**
   * process.cwd () 是一个方法，用于获取 Node.js 进程的当前工作目录
   */
  root: process.cwd(),
  /**
   * 作为静态资源服务的文件夹
   */
  publicDir: "public",
  /**
   * 配置相对路径
   */
  resolve: {
    alias: {
      //源码包
      "@": resolve(__dirname, "./src"),
    },
  },
  plugins: [cesium()],
});
